<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
     <%
     Object msg=request.getAttribute("massage");
     if(msg!=null){
     %>
     <br>
     <p style="color: red"><%=msg %></p>
     <br>
     <%
     }
     %>
     <form action="add.do" method="get">
     <table>
     <tr>
        <td>ID:</td>
        <td><input type="text" name="id" value="<%=request.getParameter("id")==null?"":request.getParameter("id")%>"> </td>
     </tr>
     <tr>
       <td>Name:</td>
        <td><input type="text" name="name" value="<%=request.getParameter("name")==null?"":request.getParameter("name")%>"> </td>
     </tr>
     <tr>
        <td>Password:</td>
        <td><input type="text" name="password" value="<%=request.getParameter("password")==null?"":request.getParameter("password")%>"> </td>
     </tr>
     <tr>
        <td><input type="submit" value="Sumbit"></td>
        <td><a href="index.jsp">return</a></td>
     </tr>
     </table>
     </form>
</body>
</html>